package com.gujiangbo.chapter08;

import org.openjdk.jol.info.ClassLayout;

/**
 * @Author: gujiangbo.co
 * @Contact: 646832012@qq.com
 * @Date: 2022/4/4 23:28
 * @Version: 1.0
 * @Description: Java对象头布局
 */
public class JavaClassLayouter {
    public static void main(String[] args) {
        Object o = new Object();
        System.out.println("对象object的布局信息如下:");
        System.out.println(ClassLayout.parseInstance(o).toPrintable());
    }
}
